package com.xszx.mapper;

import com.xszx.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description:
 * @author:瓦达西瓦
 * @date:2024/10/31
 */
@Repository
public interface AdminMapper {

    List<Goods> getGoodList();

    Integer addGoods(Goods good);

    Integer delGood(int gid);

    List<Goods> getGoodMoHuList(@Param("goods")Goods goods, @Param("minprice") Double minprice,@Param("maxprice") Double maxprice);

    Integer checkGid(int gid);

    List<Order> getOrderList();
    
    Integer rtMoney(Order order);

    Integer IfrtMoney(@Param("oid")Integer oid, @Param("rtmoney") String rtstatus);

    List<Order> getOrderMoHuList(Order order);

    Integer checkTime(String oid);

    List<Comments> getMommentList();

    Integer delComment(int cid);

    Integer checkGood(Integer gid);

    Integer checkGoodResult(Goods goods, @Param("status") String status);

    List<Goods> getcheckGood();

    List<Order> getrtMoney();

    List<Comments> getComment( Integer gid);

    Integer goComment(Comments comment);

    Integer checkIfrtmoney(Order order);

    void delOrder(Order order);

    Goods getGoodsDetails(Integer gid);

    Integer addShopping(@Param("uid") Integer uid,@Param("gid") Integer gid);

    List<User> getUser(User user);

    void delUser(int uid);

    User upUser(int uid);

    void updateUser(User user);

    void addUser(User user);

    String getAddress(String se3);

    List<Goodtype> getGoodType();

    void addGoodType(Goodtype goodtype);

    Goodtype getGtName(Goodtype goodtype);

    void delGoodType(Goodtype goodtype);

    void updateGoodType(Goodtype goodtype);

    Goodtype upGoodType(int gtid);

    List<Merchant> getMerchant(Merchant merchant);

    void addMerchant(Merchant merchant);

    void upMerchant(Merchant merchant);

    void delMerchant(Merchant merchant);


    Double getIncome(User user);

    List<User> getUsers();

    void upstatus(Goods goods);

    void updatestatus(Goods goods);

    void delGoodUser(String uid);

    List<Glo> getSe1();

    List<Glo> getSe2(String se1);

    void addIncome(User user1);

    void upRvtime(Orders orders);

    User pay(Orders orders);

    void updateBStatus(int a);

    void upBStatus(int a);

    void upBUser(int a);

    Integer Ifadd(int gid);



}
